import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const recyclingBin: AppRouteModule = {
  path: '/recyclingBin',
  name: 'recyclingBin',
  component: LAYOUT,
  redirect: '/recyclingBin/recyclingBinWorkPlace',
  meta: {
    orderNo: 16,
    icon: 'material-symbols:recycling',
    title: t('routes.demo.recyclingBin.recyclingBin'),
  },
  children: [
    {
      path: 'recyclingBinWorkPlace',
      name: 'RecyclingBinWorkPlace',
      meta: {
        title: t('routes.demo.recyclingBin.recyclingBinWorkPlace'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/recyclingBin/index.vue'),
    },
    {
      path: 'documentRecyclingBin',
      name: 'DocumentRecyclingBin',
      meta: {
        title: t('routes.demo.recyclingBin.documentRecyclingBin'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/recyclingBin/documentRecyclingBin.vue'),
    },
    {
      path: 'bomRecyclingBin',
      name: 'BomRecyclingBin',
      meta: {
        title: t('routes.demo.recyclingBin.bomRecyclingBin'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/recyclingBin/bomRecyclingBin.vue'),
    },
  ],
};

export default recyclingBin;
